﻿{extend name="public:base" /}

{block name="css"}
<link href="__ADMIN__/css/style.css" rel="stylesheet">
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post" class="layui-form fairy-form">
                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">一档服务商：培育N个不同市场</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="first_gear_diff_city_circuit" placeholder="请输入数量" value="{$first_gear_diff_city_circuit}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">二档服务商：培育N个不同市场</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="second_gear_diff_first_circuit" placeholder="请输入数量" value="{$second_gear_diff_first_circuit}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">三档服务商：培育N个不同市场</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="third_gear_diff_second_circuit" placeholder="请输入数量" value="{$third_gear_diff_second_circuit}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">一档退休基金比例（%）</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="first_gear_rate" placeholder="请输入一档退休基金比例" value="{$first_gear_rate}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">二档退休基金比例（%）</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="second_gear_rate" placeholder="请输入二档退休基金比例" value="{$second_gear_rate}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="box-item">
                            <div class="box-item">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label">三档退休基金比例（%）</label>
                                    <div class="col-sm-2">
                                        <input type="number" class="form-control" name="third_gear_rate" placeholder="请输入三档退休基金比例" value="{$third_gear_rate}">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                            </div>
                        </div>

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-primary" onclick="save()">
                                    保存
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name='js'}
<script>
    // 保存
    function save() {
        var formData = $('form').serialize();
        $.post("{:url('setRetireFundRule')}", formData, function (res){
            layer.msg(res.msg);
            setTimeout(function (){
                window.location.reload();
            },1000)
        }, 'JSON')
    }

</script>
{/block}
